package emulator.shell.GUI.symbols;

import java.util.List;

import javax.swing.table.TableModel;

import emulator.assembler.SymbolTableEntry;

public class SymbolTableVM
{
	private SymbolTableModel symbolTableModel = new SymbolTableModel();
	
	public TableModel getSymbolTableModel()
	{
		return symbolTableModel;
	}

	public int getAddressAtSymbolLine(int modelRow)
	{
		return symbolTableModel.getAddressAtSymbolLine(modelRow);
	}

	public void addSymbol(SymbolTableEntry entry)
	{
		symbolTableModel.add(entry);
	}

	public List<SymbolSourceModel> getSources(boolean selectUser) {
		return symbolTableModel.getSources(selectUser);
	}
}
